
import httpRequest from '@/utils/httpRequest'
// 列表
export function getList (data) {
    return httpRequest({
        url: '/test/warehouseChange/list',
        method: 'get',
        params: data
    })
}

// 详情
export function getById (data) {
    return httpRequest({
        url: '/test/warehouseChange',
        method: 'get',
        params: data
    })
}
// 删除
export function del (data) {
    return httpRequest({
        url: '/test/warehouseChange/delete',
        method: 'post',
        data: data
    })
}
// 新增或修改
export function save (data) {
    return httpRequest({
        url: '/test/warehouseChange',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}

// 修改状态
export function updateState (data) {
    return httpRequest({
        url: '/test/warehouseChange/updateStatus',
        method: 'post',
        data: data,
        headers: {'Content-Type': 'application/json; charset=utf-8'}
    })
}
// 仓库联想查询
export function getSearchWarehouselist (data) {
  return httpRequest({
    url: '/weight/warehouse/searchlist',
    method: 'get',
    params: data
  })
}
// 获取仓库树
export function getTreeData (data) {
  return httpRequest({
    url: '/weight/warehouse/treeData',
    method: 'get',
    params: data
  })
}
//提交
export function submitWorkflow (data) {
  return httpRequest({
    url: '/test/warehouseChange/submitWorkflow',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
//撤销
export function revocationProcess (data) {
  return httpRequest({
    url: '/test/warehouseChange/revocationProcess',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
//生成编号
export function generateCode (data) {
  return httpRequest({
    url: '/test/warehouseChange/generateCode',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
